package com.linys.scala.qf.day08

import org.apache.spark.rdd.RDD
import org.apache.spark.{SparkConf, SparkContext}

/**
  *
  */
object CarAcc {
  def main(args: Array[String]): Unit = {
    // 初始化环境
    val conf = new SparkConf().setAppName("adventtop3").setMaster("local[2]")
    val sc = new SparkContext(conf)

    // 获取数据并切分
    val cars = sc.parallelize(List(("闽AP2656", (1,2,3))))


    println("---------------------------")

    sc.stop()
  }
}
